package com.etop.pojo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


@SuppressWarnings("serial")
@Entity
@Table(name="t_function")
public class Function implements Serializable {
   /**
    * 这个是id
    */
	private Integer id;
	
	/**
	 * 这个是过滤的url
	 */
	private String value;
	private int permission_id;
	private int role_id;
	private String type;
	
	public Function(){
		super();
	}
	public Function(Integer id,
			        String value,
			        int permission_id,
			        int role_id,
			        String type){
		        super();
		        this.id=id;
		        this.value=value;
		        this.permission_id=permission_id;
		        this.role_id=role_id;
		        this.type=type;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public int getPermission_id() {
		return permission_id;
	}
	public void setPermission_id(int permission_id) {
		this.permission_id = permission_id;
	}
	public int getRole_id() {
		return role_id;
	}
	public void setRole_id(int role_id) {
		this.role_id = role_id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
}
